<%=@result %>
<script>
    Ext.onReady(function(){
        var str = "<%=@result%>";
        var type = "<%=@type%>";
		if (str.indexOf("FARE:CNY") > 0) {
            var lstr = str.substring(str.indexOf("FARE:CNY") + 8);
            //alert(type);
            if (type == "8") {
			    price4_2 = lstr.substring(0, lstr.indexOf(" "));
			}
			else if (type == "7") {
			    price3_2 = lstr.substring(0, lstr.indexOf(" "));
			}
			else if (type == "6") {
			    price2_2 = lstr.substring(0, lstr.indexOf(" "));
			}
			else if (type == "5") {
				price_2 = lstr.substring(0, lstr.indexOf(" "));
			}
			else if (type == "4") {
				price4 = lstr.substring(0, lstr.indexOf(" "));
			}
			else if (type == "3") {
				price3 = lstr.substring(0, lstr.indexOf(" "));
			}
			else if (type == "2") {
				price2 = lstr.substring(0, lstr.indexOf(" "));
			}
			else {
				price = lstr.substring(0, lstr.indexOf(" "));
			}
        }
    });
</script>
